package entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Administrator on 2016/6/24.
 * 牛号ViewPager对应的实体
 */
public class WeAccount {

    /**
     * code : 1
     * defualt : 0
     * imgurl : [{"pic":"http://192.168.1.50:8080/wifi/uersImg/picturesImg/MoRenUserImg1.png"},{"pic":"http://192.168.1.50:8080/wifi/uersImg/picturesImg/MoRenUserImg2.png"}]
     */
    private String code;
    private String defualt;

    /**
     * pic : http://192.168.1.50:8080/wifi/uersImg/picturesImg/MoRenUserImg1.png
     */
    private List<ImgurlBean> imgurl;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDefualt() {
        return defualt;
    }

    public void setDefualt(String defualt) {
        this.defualt = defualt;
    }

    public List<ImgurlBean> getImgurl() {
        return imgurl;
    }

    public void setImgurl(List<ImgurlBean> imgurl) {
        this.imgurl = imgurl;
    }

    public static class ImgurlBean implements Parcelable{
        private String pic;
        private String id;

        public ImgurlBean(){

        }
        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getPic() {
            return pic;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }

        @Override public int describeContents() {
            return 0;
        }

        @Override public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(pic);
            dest.writeString(id);
        }


        public static final Parcelable.Creator<ImgurlBean> CREATOR = new Creator<ImgurlBean>()
        {
            @Override public ImgurlBean[] newArray(int size)
            {
                return new ImgurlBean[size];
            }

            @Override public ImgurlBean createFromParcel(Parcel in)
            {
                return new ImgurlBean(in);
            }
        };

        public ImgurlBean(Parcel in)
        {
            pic = in.readString();
            id = in.readString();
        }
    }
}
